<!--
 * @Author: Aaron Huang
 * @Date: 2021-11-27 18:36:37
 * @LastEditors: Aaron Huang
 * @LastEditTime: 2021-11-27 18:43:39
 * @Description: file content
 * @company: 沃尔玛
-->
<template>
  <div class="app-container">
    <el-collapse v-model="activeName" accordion>
      <el-collapse-item name="1">
        <template slot="title">
          <i class="el-icon-search" />&nbsp;搜索栏
        </template>
        <div class="head-container">
          <el-form class="searchform" :inline="true" size="mini" label-width="auto">

            <el-form-item label="供应商号(6D)">
              <el-input v-model="searchData.vendorNbr6List" type="textarea" placeholder="请输入6位供应商号，多个回车换行隔开" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item label="部门">
              <el-input v-model="searchData.deptNbrList" type="textarea" placeholder="请输入部门，多个回车换行隔开" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item label="供应商名称">
              <el-input v-model="searchData.vendorName" placeholder="请输入供应商名称" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item label="商品名称">
              <el-input v-model.trim="searchData.skuName" placeholder="请输入商品名称" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item label="UPC(不含检验码)">
              <el-input v-model="searchData.skuList" type="textarea" placeholder="请输入UPC(不含检验码)，多个回车换行隔开" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item label="Fineline">
              <el-input v-model.trim="searchData.finelineNbr" placeholder="请输入Fineline" clearable style="width: 200px;" />
            </el-form-item>

            <el-form-item>
              <el-button size="mini" type="primary" style="float:right;margin-left:0px;" icon="el-icon-refresh" round @click="$emit('reset')">重置</el-button>
              <el-button size="mini" type="primary" style="float:right;margin-left:0px;" icon="el-icon-search" round @click="$emit('search')">查询</el-button>
            </el-form-item>
          </el-form>
        </div>
      </el-collapse-item>
    </el-collapse>
  </div>
</template>

<script>

export default {
  props: {
    searchData: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  data() {
    return {
      activeName: '1'
    }
  }
}
</script>
<style lang="scss" scoped>
.app-container{
  padding-bottom: 8px;
}
</style>

